package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.SysBusinessInfo;
import com.ruoyi.system.domain.SysInsuranceDetails;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 业务信息Mapper接口
 * 
 * @author ruoyi
 * @date 2021-08-10
 */
public interface SysBusinessInfoMapper 
{
    /**
     * 查询业务信息
     * 
     * @param id 业务信息ID
     * @return 业务信息
     */
    public SysBusinessInfo selectSysBusinessInfoById(Long id);

    public SysBusinessInfo selectSysBusinessInfoByOrderId(@Param("orderId") String orderId);

    public SysBusinessInfo selectSysBusinessInfoByInsuranceDetailsId(Long insuranceDetailsId);

    public String selectNewestOrderId();

    public String selectNewestServiceContractNo();

    public int selectNum();

    /**
     * 查询业务信息列表
     * 
     * @param sysBusinessInfo 业务信息
     * @return 业务信息集合
     */
    public List<SysBusinessInfo> selectSysBusinessInfoList(SysBusinessInfo sysBusinessInfo);

    public List<SysBusinessInfo> selectUnList(String createBy);

    public List<SysBusinessInfo> zeroTheNextDayList();

    public List<SysBusinessInfo> selectSysBusinessInfoListByinsuranceDetailsId(Long id);

    /**
     * 新增业务信息
     * 
     * @param sysBusinessInfo 业务信息
     * @return 结果
     */
    public int insertSysBusinessInfo(SysBusinessInfo sysBusinessInfo);

    /**
     * 修改业务信息
     * 
     * @param sysBusinessInfo 业务信息
     * @return 结果
     */
    public int updateSysBusinessInfo(SysBusinessInfo sysBusinessInfo);

    public int updateStatus(Long id);

    public int updateAgreement(Long id);

    public int updateZeroTheNextDay();

    public int updateInsuranceDetailsId(List<SysBusinessInfo> list,int id);

    public int updateInsuranceweekDetailsId(Long id,Long insuranceweekDetailsId);

    public List<SysBusinessInfo> selectInsuranceweekDetailsId(Long insuranceweekDetailsId);

    /**
     * 删除业务信息
     * 
     * @param id 业务信息ID
     * @return 结果
     */
    public int deleteSysBusinessInfoById(Long id);

    /**
     * 批量删除业务信息
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteSysBusinessInfoByIds(String[] ids);
}
